package com.chanta.server.persistence;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

/**
 * TODO Please comment this class..
 * 
 * @author Hakan Özdemir - Vendoo Inc.
 * @date 02.11.2013
 * 
 */
@PersistenceCapable
public class Feedback {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key;

	/** do not rename */
	@Persistent
	private User owner;

	@Persistent
	private Item item;

	@Persistent
	private String feedback;

	@Persistent
	private Integer givenStars;

	/**
	 * Getter for owner.
	 * 
	 * @return owner
	 */
	public User getOwner() {
		return owner;
	}

	/**
	 * Setter for owner.
	 * 
	 * @param owner
	 *            the owner to set
	 */
	public void setOwner(User owner) {
		this.owner = owner;
	}

	/**
	 * Getter for item.
	 * 
	 * @return item
	 */
	public Item getItem() {
		return item;
	}

	/**
	 * Setter for item.
	 * 
	 * @param item
	 *            the item to set
	 */
	public void setItem(Item item) {
		this.item = item;
	}

	/**
	 * Getter for feedback.
	 * 
	 * @return feedback
	 */
	public String getFeedback() {
		return feedback;
	}

	/**
	 * Setter for feedback.
	 * 
	 * @param feedback
	 *            the feedback to set
	 */
	public void setFeedback(String feedback) {
		this.feedback = feedback;
	}

	/**
	 * Getter for givenStars.
	 * 
	 * @return givenStars
	 */
	public Integer getGivenStars() {
		return givenStars;
	}

	/**
	 * Setter for givenStars.
	 * 
	 * @param givenStars
	 *            the givenStars to set
	 */
	public void setGivenStars(Integer givenStars) {
		this.givenStars = givenStars;
	}
}
